package com.netposa.datawarehouse.aggregator.web.vo;

import java.beans.ConstructorProperties;

public class ImagePosition {
   private Integer left;
   private Integer top;
   private Integer right;
   private Integer bottom;

   public Integer getLeft() {
      return this.left;
   }

   public Integer getTop() {
      return this.top;
   }

   public Integer getRight() {
      return this.right;
   }

   public Integer getBottom() {
      return this.bottom;
   }

   public void setLeft(Integer left) {
      this.left = left;
   }

   public void setTop(Integer top) {
      this.top = top;
   }

   public void setRight(Integer right) {
      this.right = right;
   }

   public void setBottom(Integer bottom) {
      this.bottom = bottom;
   }

   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof ImagePosition)) {
         return false;
      } else {
         ImagePosition other = (ImagePosition)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            label59: {
               Object this$left = this.getLeft();
               Object other$left = other.getLeft();
               if (this$left == null) {
                  if (other$left == null) {
                     break label59;
                  }
               } else if (this$left.equals(other$left)) {
                  break label59;
               }

               return false;
            }

            Object this$top = this.getTop();
            Object other$top = other.getTop();
            if (this$top == null) {
               if (other$top != null) {
                  return false;
               }
            } else if (!this$top.equals(other$top)) {
               return false;
            }

            Object this$right = this.getRight();
            Object other$right = other.getRight();
            if (this$right == null) {
               if (other$right != null) {
                  return false;
               }
            } else if (!this$right.equals(other$right)) {
               return false;
            }

            Object this$bottom = this.getBottom();
            Object other$bottom = other.getBottom();
            if (this$bottom == null) {
               if (other$bottom != null) {
                  return false;
               }
            } else if (!this$bottom.equals(other$bottom)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(Object other) {
      return other instanceof ImagePosition;
   }

   public int hashCode() {
      
      int result = 1;
      Object $left = this.getLeft();
      result = result * 59 + ($left == null ? 43 : $left.hashCode());
      Object $top = this.getTop();
      result = result * 59 + ($top == null ? 43 : $top.hashCode());
      Object $right = this.getRight();
      result = result * 59 + ($right == null ? 43 : $right.hashCode());
      Object $bottom = this.getBottom();
      result = result * 59 + ($bottom == null ? 43 : $bottom.hashCode());
      return result;
   }

   public String toString() {
      return "ImagePosition(left=" + this.getLeft() + ", top=" + this.getTop() + ", right=" + this.getRight() + ", bottom=" + this.getBottom() + ")";
   }

   @ConstructorProperties({"left", "top", "right", "bottom"})
   public ImagePosition(Integer left, Integer top, Integer right, Integer bottom) {
      this.left = left;
      this.top = top;
      this.right = right;
      this.bottom = bottom;
   }
}
